home *** CD-ROM | disk | FTP | other *** search
- function setupLeaf(t)
- {
- t.xVel = Math.random() * (snowWidth * 0.5);
- t.yVel = snowHeight;
- t.gotoAndPlay(11 + Math.floor(Math.random() * 3));
- t._yscale = Math.random() * 100;
- t._xscale = Math.random() * 50;
- }
- function doLeaf(t)
- {
- t.xVel * 0;
- t._x -= t.xVel;
- t.yVel += gravity;
- if(t.yVel > maxGrav)
- {
- t.yVel = maxGrav;
- }
- t._y += t.yVel;
- }
- snowHeight = 0.1;
- snowHeightRnd = 6;
- snowWidth = 50;
- gravity = 2;
- maxGrav = 1.5;
- startShake = 81;
- endShake = 101;
-